package com.example.demo.exception;
import org.springframework.http.HttpStatus;
import java.time.ZonedDateTime;
public class ApiException {
    private final String message;
    private final Throwable throwable;
    private final HttpStatus HttpStatus;
    private final ZonedDateTime ZonedDateTime;

    public ApiException(String message, Throwable throwable, org.springframework.http.HttpStatus httpStatus, java.time.ZonedDateTime zonedDateTime) {
        this.message = message;
        this.throwable = throwable;
        this.HttpStatus = httpStatus;
        this.ZonedDateTime = zonedDateTime;
    }

    @Override
    public String toString() {
        return "ApiException{" +
                "message='" + message + '\'' +
                ", throwable=" + throwable +
                ", HttpStatus=" + HttpStatus +
                ", ZonedDateTime=" + ZonedDateTime +
                '}';
    }

    public String getMessage() {
        return message;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public org.springframework.http.HttpStatus getHttpStatus() {
        return HttpStatus;
    }

    public java.time.ZonedDateTime getZonedDateTime() {
        return ZonedDateTime;
    }
}
